﻿@{
    ViewBag.Title = "Home Page";
}
<script src="@Url.Content("~/Scripts/slider.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.corner.js")" type="text/javascript"></script>
<script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        AtualizarNoticias();
        window.setInterval(AtualizarNoticias, 10000);
    });

    function AtualizarNoticias() {
        $.ajax({
            url: '/Noticia/Home',
            type: "GET",
            success: function (result) {
                $("#partialContainer").html(result);
            }
        });
    };
</script>
@*@if (Session["Acampamento"] == null)
{
    <script type="text/javascript">
        $(function () {
            $("#dialog:ui-dialog").dialog("destroy");

            $("#dialog-modal").dialog({
                modal: true,
                resizable: false,
                width: 690,
                height: 530
            });
        });
    </script>
    
    Session["Acampamento"] = "true";
    
    <div id="dialog-modal" title="Campanha de Leitura Bíblica em 1 ano">
        <img src="../../Content/Images/Prévia.jpg" alt="Campanha de Leitura Bíblica em 1 ano" width="100%" />
    </div>
}*@
<div class="floatLeft" style="margin-left: -20px">
    <div style="width: 35%; height: 270px; margin-top: -20px;">
        @Html.Action("Index", "Destaque")
        <br />
    </div>
    <div>
        <div class="tituloDestaque" style="width: 350px;">
            <span>Conecte-se</span>
        </div>
        <div id="redeSocialExterno">
            
        </div>
    </div>
</div>
<div class="floatLeft" style="margin-left: 10px; margin-top: -20px;">
    <div class="tituloDestaque" style="width: 330px;">
        <span>Play</span>
    </div>
    <br />
    @Html.Action("VideoRandomico", "Musica")
    <br />
    <br />
    <div class="tituloDestaque" style="width: 330px;">
        <span>Fique por Dentro</span>
    </div>
    <div id="partialContainer" style="width: 310px; padding: 6px; text-align: justify;">
    </div>
    @Html.ActionLink("Ver mais notícias", "Index", "Noticia")
</div>
<div class="floatRight" style="margin-left: 10px; margin-top: -20px;">
    <div class="tituloDestaque" style="width: 300px; margin-right: -20px;">
        <span>ENQUETE</span>
    </div>
    <br />
    <div style="width: 300px; margin-right: -20px; margin-bottom: 10px;">
        @Html.Action("Semana", "Enquete")
    </div>
    <div class="tituloDestaque" style="width: 300px; margin-right: -20px;">
        <span>Promoções</span>
    </div>
    <br />
    @*<a href="../Aviso/Visualizar/1">
        <img src="../../Content/Layout/Resgate.jpg" alt="Banda Resgate" width="280px" />
    </a>*@
    @Html.Partial("~/Views/PartialView/Promocao.cshtml", "280")
</div>
